package github.kawaiior.yuanchuxiuzhen.common.entity.model;

import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import github.kawaiior.yuanchuxiuzhen.common.entity.hell.SoulWanderingEntity;
import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.client.renderer.model.ModelRenderer;

public class SoulWanderingModel extends EntityModel<SoulWanderingEntity> {

    private final ModelRenderer head_1;

    private final ModelRenderer head_2;

    private final ModelRenderer head_3;

    public SoulWanderingModel() {
        this.textureHeight = 32;
        this.textureWidth = 32;

        this.head_1 = new ModelRenderer(this);
        this.head_1.setRotationPoint(0.0F, 20.0F, -4.0F);
        this.head_1.setTextureOffset(0, 0).addBox(-4.0F, -4.0F, -4.0F, 8, 8, 8, 0, false);

        this.head_2 = new ModelRenderer(this);
        this.head_1.addChild(this.head_2);
        this.head_2.setRotationPoint(0.0F, 0.0F, 4.0F);
        this.head_2.setTextureOffset(0, 16).addBox(-2.5F, -2.5F, 0.0F, 5, 5, 6, 0, false);

        this.head_3 = new ModelRenderer(this);
        this.head_2.addChild(this.head_3);
        this.head_3.setRotationPoint(0.0F, 0.0F, 6.0F);
        this.head_3.setTextureOffset(18, 25).addBox( -1.0F, -1.0F, 0.0F, 2, 2, 5, 0.0F, false);
    }

    @Override
    public void setRotationAngles(SoulWanderingEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {

    }

    @Override
    public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {
        this.head_1.render(matrixStack, buffer, packedLight, packedOverlay);
//        this.head_2.render(matrixStack, buffer, packedLight, packedOverlay);
//        this.head_3.render(matrixStack, buffer, packedLight, packedOverlay);
    }
}
